package cn.tx.controller;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport {

	protected HttpServletRequest request;
	protected HttpServletResponse response;
	protected HttpSession session;
	protected ServletContext application;
	protected List<String> exclude = new ArrayList<String>();
	
	
	/**
	 * 跳转的查询结果试图
	 */
	protected static final String TOLIST = "tolist";
	protected static final String YES = "yes";
	protected static final String NO = "no";
	protected static final String CAP_ERROR = "验证码错误";
	protected static final String USER_PASS_ERROR = "用户名或者密码错误";
	
	public BaseAction() {
		request = ServletActionContext.getRequest();
		response = ServletActionContext.getResponse();
		session = request.getSession();
		application = request.getServletContext();
		exclude.add("pageNo");
	}
	
	
	
	
}
